package com.xuecheng.auth.feignclient;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author Tang
 * @version 1.0
 * @date 2024/1/11 16:02
 */
@FeignClient(value = "checkcode", fallbackFactory = AuthFallbackFactory.class)
public interface CheckCodeClient {
    @PostMapping(value = "/checkcode/verify")
    Boolean verify(@RequestParam("key") String key,@RequestParam("code") String code);
}
